<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="copyright">
        © {{ currentYear }} 大小哈. All Rights Reserved.
      </div>
      <div class="icp">
        <a href="#" class="icp-link">备案号：京ICP备2020016734号</a>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts">
import { computed } from 'vue'

const currentYear = computed(() => new Date().getFullYear())
</script>

<style scoped>
.footer {
  background-color: #fff;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  color: #666;
}

.icp-link {
  color: #666;
  text-decoration: none;
}

.icp-link:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
</style>
